package com.shop.dao;

import com.shop.entity.ProductAttribute;

import java.util.List;

public interface ProductAttributeMapper {
    List<ProductAttribute> findAllProductAttributeByProductId(Long storeId);

    int insertSelective(ProductAttribute productAttribute);

    ProductAttribute selectByPrimaryKey(Long attributeId);

    ProductAttribute selectByPrimaryKeyIncludeDelete(Long attributeId);

    ProductAttribute selectByColorAndKit(String color, String kit);

    int updateByPrimaryKeySelective(ProductAttribute productAttribute);

    int deleteByPrimaryKey(Long attributeId);

    int updateStockByPrimaryKey(Long attributeId, int num);

    int deleteByProductId(Long productId);

    ProductAttribute findOne(Long productId);
}
